package control.servlet.compte;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import control.bd.table.User;
import control.bd.requete.Requetes;

public class RechercheCompte extends HttpServlet{

	   private static final long serialVersionUID = 1L;

	    public void doGet(HttpServletRequest request, HttpServletResponse response)
	            throws IOException, ServletException{
	    	List<User> users = Requetes.getUser();
	    	request.setAttribute("users", users);
	    	request.getRequestDispatcher("/Panier/MonCompte.jsp").forward(request, response);
	    }

	
}
